package 原型模式.浅复制;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        User user = new User();
        user.setEmail("ss");
        user.setPassword("ppdas");
        user.setUserName("ddd");
        user.setScore(1);
        ArrayList arrayList = new ArrayList();
        arrayList.add("list1");
        arrayList.add("list2");
        user.setLists(arrayList);
        User user2 = (User) user.cloneI();
        user.getLists().remove("list1");
        System.out.println(user2);
    }
}
